package com.otitan.forest.right.dto;

import com.baomidou.mybatisplus.annotation.TableField;
import com.otitan.forest.right.entity.SysRoleEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

/**
 * @Description: 当前类作用描述
 * @Author: xiazw
 * @CreateDate: 2020/8/5 17:41
 */
@Data
public class SysUserDto {

    private String id;


    @ApiModelProperty("登录名")
    private String username;

    @ApiModelProperty("真实姓名")
    private String realName;

    @ApiModelProperty("所属机构")
    private String groupId;

    @ApiModelProperty("性别")
    private String sex;

    @ApiModelProperty("手机号码")
    private String phone;

    @ApiModelProperty("邮箱")
    private String email;

    @ApiModelProperty("角色")
    private String role;

    @ApiModelProperty("所属机构层级 1.省  2.市 3.县")
    private Integer belongGroupLevel;


    private List<SysRoleEntity> roleEntities;


    /**
     * 省
     */
    @ApiModelProperty("省")
    private String province;

    /**
     * 市
     */
    @ApiModelProperty("市")
    private String city;


    /**
     * 县
     */
    @ApiModelProperty("县")
    private String county;

    /**
     * 乡/镇/街道
     */
    @ApiModelProperty("乡/镇/街道")
    private String town;

    /**
     * 村
     */
    @ApiModelProperty("村")
    private String village;

    /**
     * 组
     */
    @ApiModelProperty("组")
    private String groupName;
}
